package com.ibeeking.found.content.api.feign;

import com.ibeeking.found.content.api.common.dto.GoodsDTO;
import com.ibeeking.found.content.api.feign.fallback.ContentGoodsBFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @Author ibeeking
 */
@FeignClient(name = "mall-goods-b-server", contextId = "contentGoodsBClient", path = "/b", fallbackFactory = ContentGoodsBFallbackFactory.class, decode404 = true)
public interface ContentGoodsBClient {

    /**
     * 根据商品id集合查询商品信息
     */
    @PostMapping(value = "/goods/feign/v1/listByGoods")
    ResponseResult<List<GoodsDTO>> listByGoods(@RequestBody List<Long> goodsIds);

}